<?php
use think\facade\Route;
//用户登录
Route::post('wechat/wxlogin', 'wechat/wxlogin');
//获取手机号
Route::post('wechat/getPhoneNumber', 'wechat/getPhoneNumber');
//首页
Route::get('index/index', 'index/index');
//分类
Route::get('index/categorylist', 'index/categorylist');
//产品
Route::get('index/productlist', 'index/productlist');
Route::get('index/productinfo', 'index/productinfo');
Route::get('index/serachproduct', 'index/serachproduct');

//文章
Route::get('article/articlelist', 'article/articlelist');
Route::get('article/articledetails', 'article/articledetails');
Route::get('article/similarkeword', 'article/similarkeword');

//医生
Route::get('doctor/doctorlist', 'doctor/doctorlist');
Route::post('doctor/doctordsdetails', 'doctor/doctordsdetails');
//医生预约
//Route::post('doctor/reservation', 'doctor/reservation');
Route::post('doctor/reservationnum', 'doctor/reservationnum');
Route::post('doctor/cancelreservation', 'doctor/cancelreservation');
Route::post('doctor/selectevaltion', 'doctor/selectevaltion');//医生评价

//地址管理
Route::get('adrress/addresslist','adrress/addresslist');
Route::get('adrress/addressone','adrress/addressone');
Route::get('adrress/editadress','adrress/editadress');
Route::post('adrress/addressadd','adrress/addressadd');
Route::delete('adrress/deladress','adrress/deladress');
Route::post('adrress/defaultadrress','adrress/defaultadrress');

//我的收藏
Route::post('user/mycollectionlist','user/mycollectionlist');
Route::post('user/addcollection','user/addcollection');
Route::post('user/myreservation','user/myreservation');
Route::post('user/usersetting', 'user/usersetting');//设置
//我的
Route::post('personal/index', 'personal/index');
Route::post('personal/myinfo', 'personal/myinfo');
Route::post('personal/editmyinfo', 'personal/editmyinfo');
Route::post('personal/logout', 'personal/logout');
//健康档案
Route::post('personal/recordslist', 'personal/recordslist');
Route::post('personal/recordssave', 'personal/recordssave');
Route::post('personal/recordsdetails', 'personal/recordsdetails');

Route::post('personal/convert', 'personal/convert');
Route::post('personal/invite', 'personal/invite');
Route::post('personal/invitecode', 'personal/inviteCode');

Route::post('personal/addevaluation', 'personal/addevaluation'); //发表评价

//Route::post('personal/convert', 'personal/convert');
//Route::post('personal/invite', 'personal/invite');
//Route::post('personal/invitecode', 'personal/inviteCode');

//购物车管理
Route::get('cart/cartlist', 'cart/cartlist');//加入购物车
Route::post('cart/addcart', 'cart/addcart');//加入购物车

//订单管理
Route::post('order/createorder', 'order/createorder');



Route::post('order/orderlist', 'order/orderlist');
Route::post('order/orderdelties', 'order/orderdelties');
//Route::post('order/orderdel', 'order/orderdel');
//Route::post('order/evaluation', 'order/evaluation');//评价
//Route::post('index/sign', 'index/sign');


//交易管理
Route::post('user/trading', 'user/trading');


//创建订单
Route::post("cart/createorder",'cart/createorder');
Route::post('cart/orderpay', 'cartitem/orderPay');
Route::post('payment/notify', 'payment/notify');


//聊天记录
Route::post("chat/getchatmsglist","chat/getchatmsglist");


//Route::post('cartitem/cart2', 'cartitem/cart2');
//Route::post('cartitem/cartsubmit', 'cartitem/cartsubmit');//提交订单
////Route::post('cartitem/cartconfirm', 'cartitem/cartconfirm');//确认订单

//
//Route::post('cartitem/createorder', 'cartitem/createOrder');
//Route::post('cartitem/orderpay', 'cartitem/orderPay');
Route::post('payment/notify', 'payment/notify');

//测试接口
Route::any('index/apitest', 'index/apitest');
////上传
Route::any('ajax/ajaxupload', 'ajax/ajaxupload');
